<!DOCTYPE html>
<html>
<head th:include="common/header_css::header('霸王餐小程序后台管理-合同信息','%')"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div th:replace="common/toolbar::toolbar('合同信息管理')"></div>
        <div th:replace="common/search::search('%add')"></div>
    </div>
</div>

<!--添加Contract模态框-->
<div id="modal-add-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">合同信息添加</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form id="aform" method="post" class="form-horizontal" action="add" onsubmit="return checkAdd()">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >标题</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="title"
                                                                                                                                                                                        type="text" maxlength="0"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >客户</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="khname"
                                                                                                                                                                                        type="text" maxlength="100"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                        </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >成交金额</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="okmoney"
                                                                                                                                                                                                type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >交付状态</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="jfstatus"
                                                                                                                                                                                                type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                        </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >回款状态</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="hkstatus"
                                                                                                                                                                                                type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >合同状态</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="htstatus"
                                                                                                                                                                                                type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                        </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >联系人</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="linkman"
                                                                                                                                                                                        type="text" maxlength="50"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >签署人</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="qsman"
                                                                                                                                                                                        type="text" maxlength="50"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                        </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                        <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">开始时间
                                                        </label>
                                                    <div class="col-sm-8">
                                                        <input type="date" class="form-control selectData" readonly id="starttime"  name="starttime">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">结束时间
                                                        </label>
                                                    <div class="col-sm-8">
                                                        <input type="date" class="form-control selectData" readonly id="endtime"  name="endtime">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                        </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >条款</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="tiaokuan"
                                                                                                                                                                                        type="text" maxlength="5000"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-add-form" >取消</button>
                                        </div>
                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--修改Contract模态框-->
<div id="modal-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">合同信息修改</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form id="mform" method="post" class="form-horizontal" action="modify" onsubmit="return checkModify()">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >标题</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="title" name="title"
                                                                                                                                                                                       type="text" maxlength="0"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >客户</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="khname" name="khname"
                                                                                                                                                                                       type="text" maxlength="100"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >成交金额</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="okmoney" name="okmoney"
                                                                                                                                                                                       type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >交付状态</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="jfstatus" name="jfstatus"
                                                                                                                                                                                       type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >回款状态</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="hkstatus" name="hkstatus"
                                                                                                                                                                                       type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >合同状态</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="htstatus" name="htstatus"
                                                                                                                                                                                       type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >联系人</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="linkman" name="linkman"
                                                                                                                                                                                       type="text" maxlength="50"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >签署人</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="qsman" name="qsman"
                                                                                                                                                                                       type="text" maxlength="50"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                        <div class="row">
                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">开始时间</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control selectData" readonly id="starttime2" name="starttime">
                                                    </div>
                                                </div>
                                             </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">结束时间</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control selectData" readonly id="endtime2" name="endtime">
                                                    </div>
                                                </div>
                                             </div>
                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >条款</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="tiaokuan" name="tiaokuan"
                                                                                                                                                                                       type="text" maxlength="5000"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-form" >取消</button>
                                        </div>
                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <input id="id" name="id" type="hidden" value="" />
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="common/footer_js::footer('%'))"></div>
                                                                                                                                                                                                                            <script src="/js/admin/contract.js"></script>
</body>
</html>
